package com.king.headline.util;

import android.graphics.Paint;
import android.text.TextPaint;
import android.widget.TextView;

/**
 * Created by king on 2016/4/7.
 */
public class TextViewUtils {
    public static TextViewUtils getInstance(){
        return new TextViewUtils();
    }
    public void setBlod(TextView tv){
        TextPaint tp = tv.getPaint();
        tp.setFakeBoldText(true);
    }
    public void setUnderLine(TextView tv){
        tv.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);//下划线
        tv.getPaint().setAntiAlias(true);// 抗锯齿
    }
    public void setCenterLine(TextView tv){
        tv.getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG ); //中间横线
        tv.getPaint().setAntiAlias(true);// 抗锯齿
    }

}
